package com.opgea.tutor.web.dto;

import com.opgea.tutor.domain.entities.Email;
import com.opgea.tutor.domain.interfaces.Marshallable;

public class EmailDTO implements Marshallable<Email> {

    private String emailId;
    private String description;

    public String getEmailId() {
	return emailId;
    }

    public void setEmailId(String emailId) {
	this.emailId = emailId;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    @Override
    public void marshall(Email email) {
	this.emailId = email.getEmailId();
	this.description = email.getDescription();
    }

    @Override
    public Object unmarshall(Email email) {
	email.setEmailId(this.emailId);
	email.setDescription(this.description);
	return email;
    }
}
